import request from '@/utils/request'

// 查询参数列表
export function listError(query) {
  return request({
    url: '/equipment/error/list',
    method: 'get',
    params: query
  })
}

// 查询参数详细
export function getError(errorId) {
  return request({
    url: '/equipment/error/' + errorId,
    method: 'get'
  })
}


// 新增参数配置
export function addError(data) {
  return request({
    url: '/equipment/error',
    method: 'post',
    data: data
  })
}

// 修改参数配置
export function updateError(data) {
  return request({
    url: '/equipment/error',
    method: 'put',
    data: data
  })
}

// 删除参数配置
export function delError(errorId) {
  return request({
    url: '/equipment/error/' + errorId,
    method: 'delete'
  })
}

